home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS15.ADF
/
Texts
/
ansi.txt
next >
Wrap
Text File
|
1988-04-20
|
3KB
|
50 lines
ANSI codes that COM: responds to.
[ ] - contains optional parts of the command.
'n' and 'm' - always a decimal number, having one or more ASCII
digits to express its value.
Where there is '[n]' and 'n' is not used, it usually defaults to '1'.
Backspace 08
Line Feed (down one line) 0A
Up (up one line) 0B
Form Feed (clear screen) 0C
Carriage Return (move to first column) 0D
Shift in (turn off 'Shift out') 0E
Shift out (set MSB of each char before displaying) 0F
<CSI> (Control sequence introducer) 1B 5B or 9B
Reset 1B 63
Insert n characters <CSI> [n] 40
Cursor up n lines <CSI> [n] 41
Cursor down n lines <CSI> [n] 42
Cursor forward n lines <CSI> [n] 43
Cursor backward n lines <CSI> [n] 44
Cursor down n lines and to column 1 <CSI> [n] 45
Cursor up n lines and to column 1 <CSI> [n] 46
Cursor to row n column m <CSI> [n] [3B m] 48
Erase to end of display <CSI> 4A
Erase to end of line <CSI> 4B
Insert line above current line <CSI> 4C
Delete current line <CSI> 4D
Delete n chars from under cursor forward <CSI> [n] 50
Scroll display up n lines <CSI> [n] 53
Scroll display down n lines <CSI> [n] 54
Set mode (line feed -> line feed + carrage return) <CSI> 32 30 68
Reset mode (line feed -> line feed) <CSI> 32 30 6C
Select graphic rendition <CSI> s 3B 33 f 3B 34 b 6D
Where: 's' (style) = 30 : plain text
31 : Bold-face
33 : Italic
34 : Underscore
37 : Inverse-video
'f' (text color) and 'b' (background color) =
30 : System color 0 34 : System color 4
31 : System color 1 35 : System color 5
32 : System color 2 36 : system color 6
33 : System color 3 37 : system color 7